#include"Delay.h"
#include"led.h"
#include "usart.h"
#include "dma.h"
extern uint8_t flag;
const uint8_t scr[]={10,50,80,100};
uint8_t des[]={1,2,3,4};
int main()
{
   usart_init();
   dma_init();
   printf("abcdefgdddddddddddddddddddddd\n");
   printf("%p\t %p\t",scr,des);
   dma_transform((uint32_t)scr,(uint32_t)des,4);
   while(1)
   {
    if(flag)
    {
      for (uint8_t i = 0; i < 4; i++)
      {
         printf("%d\t",des[i]);
      }
      flag=0;
      
    }
   }
}
